package org.example.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.example.pojo.LogVO;

import java.util.List;

@Mapper
public interface LogMapper {
    @Insert("insert into logs(username, ip, action, result) values(#{username},#{ip},#{action},#{result})")
    void addLog(LogVO logVO);
    List<LogVO> logList(String keywords, String start, String end);
}
